package puzzle;

import aima.core.search.framework.HeuristicFunction;

public class PuzzleMismatchHeuristicFunction implements HeuristicFunction {

    @Override
    public double h(Object state) {
        PuzzleBoard board = (PuzzleBoard) state;
        return ((double) board.getMismatchValue()) / 4;
    }

}

